import React from 'react'
import { useRecoilValue } from 'recoil'
import styles from './index.module.less'
import Hospital from './components/Hospital'
import Ward from './components/Ward'
import CheckAuthority from '@/components/CheckAuthority'
import { userInfo } from '@/store/userInfo'

export default () => {
  const role = useRecoilValue(userInfo)
  return (
    <div className='layout-main-conent'>
      <CheckAuthority role={30}>
        <Hospital />
      </CheckAuthority>
      <CheckAuthority role={40}>
        <Ward />
      </CheckAuthority>
    </div>
  )
}
